package cn.rulian.base.auth.pojo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/** 
  *  系统信息：目前系统支持的子系统配置信息。
 */
@SuppressWarnings("unused")
public class SysConfig {
	
	//登录界面配置
	private static Login LOGIN_DEF = new Login("default", "默认登录界面", "");
	private static Login LOGIN_RED = new Login("red", "红色登录界面", "");
	private static Login LOGIN_DCMM = new Login("dcmm", "dcmm", "");
	private static Login LOGIN_YUN = new Login("yun", "白云", "");
	
	//皮肤配置
	private static Theme THEME_DEF = new Theme("default", "默认皮肤", "");
	private static Theme THEME_RED = new Theme("red", "红色皮肤", "");
	private static Theme THEME_DCMM = new Theme("dcmm", "dcmm", "");
	
	//业务系统配置
	public static final Sys SYS_DEF = new Sys("rulian", "Rulian开发平台", "Rulian", LOGIN_DEF, THEME_DEF, true); //默认系统
	public static final Sys SYS_CAR = new Sys("car", "车辆外出管理系统", "车辆外出管理", LOGIN_RED, THEME_DEF, true);
	
	//业务系统List和Map
	public static final List<Sys> list = new ArrayList<>();
	public static final Map<String, Sys> map = new HashMap<>();
	static
	{
		//填充list
		list.add(SYS_DEF);
		list.add(SYS_CAR);
		
		//填充map
		for(Sys sys:list)
		{
			map.put(sys.getCode(), sys);
		}
	}
	
}
